package com.ldk.framework.dao.impl;

import java.util.Map;

import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Repository;
import org.springframework.util.Assert;

import com.ldk.base.framework.dao.impl.BaseDAO;
import com.ldk.base.framework.util.BeanUtil;
import com.ldk.framework.dao.IDriverReceiveTripDAO;
import com.ldk.framework.entity.DriverReceiveTrip;

/**
* DriverReceiveTripDAO接口实现类
* @author xiangwl
*/
@Repository
public class DriverReceiveTripDAO extends BaseDAO<DriverReceiveTrip> implements IDriverReceiveTripDAO {

	@Override
	public int deleteExceptDriver(String dbKey, DriverReceiveTrip query) {
		Assert.notNull(query);
		Map<String, Object> parms = BeanUtil.toMap(query);
		
		SqlSession sqlSession = getSqlSession(dbKey);
	    return sqlSession.delete(getSqlName("deleteExceptDriver"), parms);
	}

}
